package com.zqsoft.bean;


/**
 * 用户的游戏数据信息
 * @author 周翔
 */
public class UserData {

    private int exp;	// 经验值
    private int money;	// 金币数
    private int userId;	// 用户编号

    public int getExp() {
        return exp;
    }
    public void setExp(int exp) {
        this.exp = exp;
    }
    public int getMoney() {
        return money;
    }
    public void setMoney(int money) {
        this.money = money;
    }
    public int getUserId() {
        return userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }

    /**
     * 根据用户的经验计算用户的游戏等级
     * @return
     */
    public int getUserLevel() {
        return 1;
    }

    @Override
    public String toString() {
        // TODO Auto-generated method stub
        return this.exp + ";" + this.money;

    }

}